<?php  
    // Define directory
    define('PATH_ROOT', dirname(__FILE__).DIRECTORY_SEPARATOR);
    define('PATH_ADMIN', PATH_ROOT. 'admin' .DIRECTORY_SEPARATOR);
    define('PATH_CODE', PATH_ROOT. 'code' . DIRECTORY_SEPARATOR);
    define('PATH_INCLUDES', PATH_ROOT. 'includes' .DIRECTORY_SEPARATOR);
    define('PATH_FRONT', PATH_ROOT. 'frontend' . DIRECTORY_SEPARATOR);
    define('PATH_STATIC', PATH_ROOT. 'static-html' . DIRECTORY_SEPARATOR);
    define('PATH_TEMPLATES', PATH_ROOT. 'templates' .DIRECTORY_SEPARATOR);
    define('PATH_UPLOAD', PATH_ROOT. 'userupload' . DIRECTORY_SEPARATOR);
    
    // Admin path
    define('ADMIN_MODULE', PATH_ADMIN. 'module' . DIRECTORY_SEPARATOR);
    define('ADMIN_TEMPLATES', PATH_TEMPLATES.'/admin' . DIRECTORY_SEPARATOR);
    
    //Define error code Upload
    define('FILE_ERROR',1);
    define('FILE_EXISTS',2);
    define('FILE_INVALID_TYPE',3);  
    
    //Define datetime
    define('currentDate', gmdate("Y-m-d H:i:s", time()+(7*3600)));
?>
